package com.rapid.maintenance.ui.activity.auctionhouse;

import android.content.Intent;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;

import com.rapid.maintenance.R;
import com.rapid.maintenance.adapter.BiddingDetailsAdapter;
import com.rapid.maintenance.base.BaseActivity;

import butterknife.BindView;
public class BiddingDetailsActivity extends BaseActivity {
    boolean isPublisher = false;
    @BindView(R.id.tv_offer_count)
    TextView tvOfferCount;
    @BindView(R.id.rv_bidding_details)
    RecyclerView rvBiddingDetails;
    @BindView(R.id.tv_user_count)
    TextView tvUserCount;
    @BindView(R.id.tv_offer)
    TextView tvOffer;
    @BindView(R.id.ll_participate)
    LinearLayout llParticipate;
    private BiddingDetailsAdapter adapter;

    @Override
    protected int provideRootLayout() {
        return R.layout.activity_bidding_details;
    }

    @Override
    protected void initializationData(Intent intent) {
        isPublisher = intent.getBooleanExtra("isPublisher", false);
    }

    @Override
    protected void init() {
        setTitle("竞价详情");
        setStatusBarColor(0xFF016DB6);
        setToolBarColor(0xFF016DB6);
        llParticipate.setVisibility(isPublisher ? View.GONE : View.VISIBLE);
        rvBiddingDetails.setAdapter(adapter = new BiddingDetailsAdapter(isPublisher));
        adapter.addData(new Object());
        adapter.addData(new Object());
        adapter.addData(new Object());
        adapter.addData(new Object());

    }

}
